<?php
/**
 * チーム選択メニュークラスモジュール
 */
require_once 'Smarty/Components/select.php';
require_once __DIR__ . '/TeamSelectMapper.php';

/**
 * チーム選択メニュークラス
 * @author admin
 *
 */
class Components_TeamSelect_Menu extends Smarty_Components_Select
{
	/** ＨＴＴＰリクエスト：チームＩＤ */
	const HTTE_REQUEST_KEY_TEAM = 'TEAM';

	/**
	 * コンストラクタ
	 * @param unknown_type $sCompileDir
	 * @param unknown_type $sCompileId
	 */
	public function __construct($sCompileDir, $sCompileId)
	{
		$objMapper = new Components_TeamSelect_Mapper();
		$aryOptions = $objMapper->createSelectOptions();
		$sName = self::HTTE_REQUEST_KEY_TEAM;
		parent::__construct($sCompileDir, $sCompileId, $sName, $aryOptions);
	}

	/**
	 * ＦＥＴＣＨ(non-PHPdoc)
	 * @see Smarty_Components_Select::fetch()
	 */
	public function fetch()
	{
		$sHtml = parent::fetch();
		return $sHtml;
	}

}